<?php
use_javascript(plugin_web_path('orangehrmTLUAdminPlugin', 'js/viewEmploymentContractTypeListSuccess'));
?>

<div id="employmentContractTypeList">
    <?php include_component('core', 'ohrmList', $parmetersForListCompoment); ?>
</div>

<!-- comment dialog -->

<div id="commentDialog" title="<?php echo __('Employment Contract Type Name'); ?>" style="display: none">
    <form action="updateComment" method="post" id="frmCommentSave">
        <input type="hidden" id="leaveId"/>
        <input type="hidden" id="leaveOrRequest"/>
        <textarea name="leaveComment" id="leaveComment" cols="40" rows="10" class="commentTextArea"></textarea>
        <br class="clear"/>

        <div><input type="button" id="commentCancel" class="plainbtn" value="<?php echo __('Cancel'); ?>"/></div>
    </form>
</div>

<form name="frmHiddenParam" id="frmHiddenParam" method="post"
      action="<?php echo url_for('tluadmin/viewEmploymentContractTypeList'); ?>">
    <input type="hidden" name="pageNo" id="pageNo" value="<?php //echo $form->pageNo;   ?>"/>
    <input type="hidden" name="hdnAction" id="hdnAction" value="search"/>
</form>

<!-- end of comment dialog-->

<!-- Confirmation box HTML: Begins -->
<div class="modal hide" id="deleteConfModal">
    <div class="modal-header">
        <a class="close" data-dismiss="modal">×</a>

        <h3><?php echo __('OrangeHRM - Confirmation Required'); ?></h3>
    </div>
    <div class="modal-body">
        <p><?php echo __(CommonMessages::DELETE_CONFIRMATION); ?></p>
    </div>
    <div class="modal-footer">
        <input type="button" class="btn" data-dismiss="modal" id="dialogDeleteBtn" value="<?php echo __('Ok'); ?>"/>
        <input type="button" class="btn reset" data-dismiss="modal" value="<?php echo __('Cancel'); ?>"/>
    </div>
</div>
<!-- Confirmation box HTML: Ends -->

<script type="text/javascript">
    var addEmploymentContractTypeUrl = '<?php echo url_for('tluadmin/saveEmploymentContractType'); ?>';
    function submitPage(pageNo) {

        document.frmHiddenParam.pageNo.value = pageNo;
        document.frmHiddenParam.hdnAction.value = 'paging';
        document.getElementById('frmHiddenParam').submit();

    }
</script>
